package com.ruoyi.conference.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.conference.mapper.TbOccupationMapper;
import com.ruoyi.conference.domain.TbOccupation;
import com.ruoyi.conference.service.ITbOccupationService;

/**
 * 会议占用详情表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-06
 */
@Service
public class TbOccupationServiceImpl implements ITbOccupationService 
{
    @Autowired
    private TbOccupationMapper tbOccupationMapper;

    /**
     * 查询会议占用详情表
     * 
     * @param occupId 会议占用详情表主键
     * @return 会议占用详情表
     */
    @Override
    public TbOccupation selectTbOccupationByOccupId(Long occupId)
    {
        return tbOccupationMapper.selectTbOccupationByOccupId(occupId);
    }

    /**
     * 查询会议占用详情表列表
     * 
     * @param tbOccupation 会议占用详情表
     * @return 会议占用详情表
     */
    @Override
    public List<TbOccupation> selectTbOccupationList(TbOccupation tbOccupation)
    {
        return tbOccupationMapper.selectTbOccupationList(tbOccupation);
    }

    /**
     * 新增会议占用详情表
     * 
     * @param tbOccupation 会议占用详情表
     * @return 结果
     */
    @Override
    public int insertTbOccupation(TbOccupation tbOccupation)
    {
        return tbOccupationMapper.insertTbOccupation(tbOccupation);
    }

    /**
     * 修改会议占用详情表
     * 
     * @param tbOccupation 会议占用详情表
     * @return 结果
     */
    @Override
    public int updateTbOccupation(TbOccupation tbOccupation)
    {
        return tbOccupationMapper.updateTbOccupation(tbOccupation);
    }

    /**
     * 批量删除会议占用详情表
     * 
     * @param occupIds 需要删除的会议占用详情表主键
     * @return 结果
     */
    @Override
    public int deleteTbOccupationByOccupIds(Long[] occupIds)
    {
        return tbOccupationMapper.deleteTbOccupationByOccupIds(occupIds);
    }

    /**
     * 删除会议占用详情表信息
     * 
     * @param occupId 会议占用详情表主键
     * @return 结果
     */
    @Override
    public int deleteTbOccupationByOccupId(Long occupId)
    {
        return tbOccupationMapper.deleteTbOccupationByOccupId(occupId);
    }
}
